package com.liuwa.knowledge.query;

import com.liuwa.common.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.liuwa.common.bean.SortedPageQuery;
import org.springframework.data.domain.Sort;

/**
 * 教材查询
 * 
 * @author liuwa
 * @date 2025-04-03 10:06:25
 */
@ApiModel(description = "教材查询")
public class BookQuery extends SortedPageQuery{



    /** 类别 */
    @ApiModelProperty(name="type", required = true, value="类别")
    private Integer type;


    /** 名称 */
    @ApiModelProperty(name="name", required = true, value="名称")
    private String name;


    /** 封面 */
    @ApiModelProperty(name="cover", required = true, value="封面")
    private String cover;


    /** 学科 */
    @ApiModelProperty(name="subject", required = true, value="学科")
    private String subject;


    /** 出版社 */
    @ApiModelProperty(name="publisher", required = true, value="出版社")
    private String publisher;


    /** 年级 */
    @ApiModelProperty(name="grade", required = true, value="年级")
    private Integer grade;


    /** 上下册 */
    @ApiModelProperty(name="volume", required = true, value="上下册")
    private String volume;








    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setSubject(String subject) 
    {
        this.subject = subject;
    }

    public String getSubject() 
    {
        return subject;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setGrade(Integer grade) 
    {
        this.grade = grade;
    }

    public Integer getGrade() 
    {
        return grade;
    }

    public void setVolume(String volume) 
    {
        this.volume = volume;
    }

    public String getVolume() 
    {
        return volume;
    }



    @Override
    public Sort defaultSort() {
        return Sort.by(Sort.Order.asc("id"));
    }

}
